/**
 * @copyright Copyright (c) 2023..
 *
 * @file    uartProtocol.h
 * @brief
 * @author  xuesong(wenshaoliu@foxmail.com)
 * @version 0.1
 * @date    2023-04-26
 */
#ifndef __UART_PROTOCOL__H__
#define __UART_PROTOCOL__H__

#ifdef __cplusplus
extern "C"
{
#endif

#include "types.h"
#include "gpio.h"
    // #include "halPeripheral.h"
    // #include "userInfor.h"

#define UART_RX_BUF_INDEX   255
#define UART_RX_BUF_SIZE	256

typedef struct
{
	uint32_t wr;
	uint32_t rd;
	uint8_t  data[UART_RX_BUF_SIZE];
}uart_rx_data_t;

extern uart_rx_data_t  uartRxData;
#ifdef __cplusplus
}
#endif

#endif
